package org.vic.command.after;

/**
 * Created by VIC.Huang on 2016/9/8.
 */
public class Work {
    public static void main(String[] args) {
        Programmer xiaozuo = new Programmer("小左");
        Programmer xiaobi = new Programmer("小臂");
        ProductManage productManage = new ProductManage(xiaozuo, xiaobi);

        Salesman salesmanA = new Salesman("A");
        Salesman salesmanB = new Salesman("B");
        Salesman salesmanC = new Salesman("C");
        Salesman salesmanD = new Salesman("D");

        salesmanA.putDemand(productManage);
        salesmanB.putDemand(productManage);
        salesmanC.putBug(productManage);
        salesmanC.putDemand(productManage);
        salesmanD.putBug(productManage);

        System.out.println("第一天产品经理分配任务");
        productManage.assign();
        productManage.printTaskList();
        System.out.println("第二天产品经理分配任务");
        productManage.assign();
        productManage.printTaskList();
    }
}
